package com.inossem.warehousestorage_inossem.listener;

import android.content.Context;

import com.inossem.warehousestorage_inossem.model.StringResponse;

/**
 * Created by leij on 2017/6/5.
 */

public abstract class StringRequestListener extends BaseStringRequestListener {

    @Override
    public void onDefaultError(Context context, StringResponse stringRequestResponse) {
        super.onDefaultError(context, stringRequestResponse);
    }

    @Override
    public void onError(Context context, StringResponse stringRequestResponse) {
        super.onError(context, stringRequestResponse);
    }

    @Override
    public abstract void onSuccess(StringResponse stringRequestResponse);

    // 如果想让onError方法生效必须复写此方法，并且返回值为false
    @Override
    public boolean useDefaultError() {
        return super.useDefaultError();
    }

}
